@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
// 设置系统按钮样式，自定义
$my-default-btn-color: #0A4EAB;
$my-default-btn-color-hover: #0e5cc7;
body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global scss
.app-container {
  padding: 20px;
}

.common-message{
    width: 500px;
  .el-message-box__header {
    border-bottom: 1px solid #ddd;
  }
  .el-message-box__content{
    padding: 30px 0;
    text-align: center;
    .el-message-box__container{
      .el-message-box__status {
        color:#d81e06;
        font-size: 30px !important;
        top: 18%;
        left: 28%;
      }
      .el-message-box__message{
        p{
          .topMessage{
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 20px;
            display: inline-block;
          }
          .bottomMessage{
            font-size: 16px;
            color: #8c96a6;
          }
        }
      }
    }
  }
  .el-message-box__btns {
    padding: 5px 15px 0;
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    .confirmButtonClass{
      color: #fff;
      background-color: $my-default-btn-color;
      border-color: $my-default-btn-color;
    }
    .confirmButtonClass:hover{
      background: $my-default-btn-color-hover;
      border-color: $my-default-btn-color-hover;
      color: #fff;
    }
    .cancelButtonClass{
      background-color: #e4e6e9;
      border-color: #e4e6e9;
      color: #606266;
    }
    .cancelButtonClass:hover {
      background-color: #eaebec;
      border-color: #eaebec;
      color: #606266;
    }
  }
}
.confirmWarning{
  .el-message-box__content{
    .el-message-box__container{
      .el-message-box__status {
        color:#d81e06;
        font-size: 50px !important;
        top: 18%;
        left: 30%;
      }
      .el-message-box__message{
        p{
          .topMessage{
            font-size: 25px;
            font-weight: bold;
            margin-bottom: 20px;
            display: inline-block;
          }
          .bottomMessage{
            display: inline-block;
            margin-top: 20px;
            font-size: 20px;
            color: #8c96a6;
          }
        }
      }
    }
  }
  .el-message-box__btns {
    padding: 5px 15px 0;
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    .confirmButtonClass{
      color: #fff;
      background-color: $my-default-btn-color;
      border-color: $my-default-btn-color;
    }
    .confirmButtonClass:hover{
      background: $my-default-btn-color-hover;
      border-color: $my-default-btn-color-hover;
      color: #fff;
    }
    .cancelButtonClass{
      background-color: #e4e6e9;
      border-color: #e4e6e9;
      color: #606266;
    }
    .cancelButtonClass:hover {
      background-color: #eaebec;
      border-color: #eaebec;
      color: #606266;
    }
  }
}
.confirmjinggao{
  width:600px;
  .el-message-box__content{
    .el-message-box__container{
      .el-message-box__status {
        color:#d81e06;
        font-size: 60px !important;
        top: 18%;
        left: 30%;
      }
      .el-message-box__message{
        p{
          .topMessage{
            font-size: 25px;
            font-weight: bold;
            margin-bottom: 20px;
            display: inline-block;
          }
          .bottomMessage{
            display: inline-block;
            margin-top: 20px;
            font-size: 20px;
            color: #8c96a6;
          }
        }
      }
    }
  }
  .el-message-box__btns {
    padding: 5px;
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    .confirmButtonClass{
      color: #fff;
      background-color: $my-default-btn-color;
      border-color: $my-default-btn-color;
    }
    .confirmButtonClass:hover{
      background: $my-default-btn-color-hover;
      border-color: $my-default-btn-color-hover;
      color: #fff;
    }
    .cancelButtonClass{
      background-color: #e4e6e9;
      border-color: #e4e6e9;
      color: #606266;
    }
    .cancelButtonClass:hover {
      background-color: #eaebec;
      border-color: #eaebec;
      color: #606266;
    }
  }
}

//全局messageBox组件样式
.message-logout{
  .el-message-box__header {
    border-bottom: 1px solid #ddd;
  }
  .el-message-box__content{
    padding: 30px;
    text-align: center;
    .el-message-box__container{
      .el-message-box__status {
        color:green;
        font-size: 30px !important;
        top: 18%;
        left: 28%;
      }
      .el-message-box__message{
        p{
          .topMessage{
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 20px;
            display: inline-block;
          }
          .bottomMessage{
            font-size: 16px;
            color: #8c96a6;
          }
        }
      }
    }
  }
  .el-message-box__btns {
    padding: 5px 15px 0;
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    .confirmButtonClass{
      color: #fff;
      background-color: $my-default-btn-color;
      border-color: $my-default-btn-color;
    }
    .confirmButtonClass:hover{
      background: $my-default-btn-color-hover;
      border-color: $my-default-btn-color-hover;
      color: #fff;
    }
    .cancelButtonClass{
      background-color: #e4e6e9;
      border-color: #e4e6e9;
      color: #606266;
    }
    .cancelButtonClass:hover {
      background-color: #eaebec;
      border-color: #eaebec;
      color: #606266;
    }
  }

}
// 全局删除提示框
.confirmDelete{
  .el-message-box__content{
    .el-message-box__container{
      .el-message-box__status {
        color: #d81e06;
        left: 35%;
      }
    }
  }
  .el-message-box__btns {
    padding: 5px 15px 0;
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    .confirmButtonClass{
      color: #fff;
      background-color: #f56c6c;
      border-color: #f56c6c;
    }
    .confirmButtonClass:hover{
      background: #f78989;
      border-color: #f78989;
      color: #fff;
    }
    .cancelButtonClass{
      background-color: #e4e6e9;
      border-color: #e4e6e9;
    }
    .cancelButtonClass:hover {
      background-color: #eaebec;
      border-color: #eaebec;
      color: #606266;
    }
  }
}
//修改默认按钮颜色
.myDefaultBtn {
  color: #fff;
  background-color: $my-default-btn-color;
  border-color: $my-default-btn-color;
}
.myDefaultBtn:hover {
  color: #fff;
  background-color: $my-default-btn-color-hover;
  border-color: $my-default-btn-color-hover;
}
.myDefaultBtn:disabled, .myDefaultBtn:disabled:hover{
  color: #C9CACB;
  background-color: #F7F8FA;
  border-color: #DCDEE0;
}
.bigBtnPadding{
  padding: 12px 24px;
  height: 40px;
}
.smallBtnPadding{
  padding: 7px 23px;
  height: 32px;
}
.el-button--primary.is-disabled,.el-button--primary.is-disabled:hover{
  color: #C9CACB;
  background-color: #F7F8FA;
  border-color: #DCDEE0;
}

// // 修改默认分页选中颜色
// .el-pagination.is-background .el-pager li:not(.disabled).active{
//   background-color: $my-default-btn-color;
// }

// el-dialog 样式
.el-dialog__header{
  border-bottom: 1px solid #eee;
  padding: 16px !important;
  .el-dialog__title {
    font-weight: bold;
  }
  .dialog-title span {
    font-weight: bold;
    font-size: 18px;
  }
}
.el-card__body, .el-main{
  padding: 0;
}
.app-container{
  padding: 0;
}


::v-deep .el-dialog {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

}
.el-dialog {
  border-radius: 8px;
}

.el-dialog .el-dialog__body {
  flex: 1;
  overflow: auto;
  padding: 16px;
}
::v-deep .el-range-editor.el-input__inner{
  padding: 3px;
}
.el-input__inner{
  padding: 0 12px;
}

.el-table__cell .cell .sysButton {
  margin-bottom: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  .innner{
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
}
.primaryClass,.el-button--small,.el-button--mini{
  font-size: 14px;
  height: 32px;
}
.bottom16{
  margin-bottom: 16px;
}
.el-button+.el-button, .el-checkbox.is-bordered+.el-checkbox.is-bordered{
  padding: 7px 23px;
  height: 32px;
  margin-left: 16px;
}
// 统一修改字距离组件的距离
.el-checkbox{
  margin-right:60px;
}
.el-checkbox__label{
  padding-left: 8px;
}
 //修改全局的单选按钮样式
.el-radio__input.is-checked .el-radio__inner {
  border-color: #0A4EAB;
  background: #fff;
}
.el-radio__inner {
  border: 1px solid #dcdfe6;
  border-radius: 100%;
  width: 14px;
  height: 14px;
  background-color: #fff;
  position: relative;
  cursor: pointer;
  display: inline-block;
  box-sizing: border-box;
  text-align: center;
}
.el-radio__inner:after {
  width: 7px;
  height: 7px;
  border-radius: 100%;
  /* background-color: #fff; */
  content: "";
  background: #0A4EAB;
  display: inline-block;
  vertical-align: middle;
  //height: 100%;
}
.el-radio__input.is-checked+.el-radio__label{
  font-size: 14px;
  font-weight: 400;
  color: #0A4EAB;
}
// 多选框
.el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner{
  background-color: #0A4EAB;
  border-color: #0A4EAB;
}
.el-checkbox__inner::after{
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  content: "";
  border: 2px solid #FFF;
  border-left: 0;
  border-top: 0;
  height: 7px;
  left: 4px;
  position: absolute;
  top: 1px;
  -webkit-transform: rotate(45deg) scaleY(0);
  transform: rotate(45deg) scaleY(0);
  width: 3px;
  -webkit-transition: -webkit-transform .15s ease-in .05s;
  transition: -webkit-transform .15s ease-in .05s;
  transition: transform .15s ease-in .05s;
  transition: transform .15s ease-in .05s, -webkit-transform .15s ease-in .05s;
  transition: transform .15s ease-in .05s,-webkit-transform .15s ease-in .05s;
  -webkit-transform-origin: center;
  transform-origin: center;
}
.el-checkbox__inner {
  display: inline-block;
  position: relative;
  //border: 1px solid #0A4EAB;
  border-radius: 2px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  background-color: #FFF;
  z-index: 1;
  -webkit-transition: border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46);
  transition: border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46);
}
.el-checkbox__input.is-checked+.el-checkbox__label{
  color: #333333;
}
.el-range-editor.is-active, .el-range-editor.is-active:hover, .el-select .el-input.is-focus .el-input__inner,
.el-cascader .el-input .el-input__inner:focus, .el-cascader .el-input.is-focus .el-input__inner,
.el-input__inner:focus,.el-select .el-input__inner:hover,.el-input__inner:hover,.el-select .el-input__inner:hover,
.el-select .el-input__inner:focus,.el-cascader .el-input .el-input__inner:hover,.el-textarea__inner:focus,.el-textarea__inner:hover{
  border-color: #0A4EAB;
}
// 提示框里面的按钮
.el-message-box__btns{
  .el-button--small{
    padding: 7px 23px;
    height: 32px;
    font-family: "Microsoft YaHei";
  }
  .el-button--primary {
    color: #fff;
    background-color: $my-default-btn-color;
    border-color: $my-default-btn-color;
  }
  .el-button--primary:hover {
    color: #fff;
    background-color: $my-default-btn-color-hover;
    border-color: $my-default-btn-color-hover;
  }
  .el-button--primary:disabled, .el-button--primary:disabled:hover{
    color: #C9CACB;
    background-color: #F7F8FA;
    border-color: #DCDEE0;
  }
}
// 日历控件
.el-date-table td span{
  line-height: 22px;
}
.el-date-table td.today span{
  border: 1px solid $my-default-btn-color;
  color: $my-default-btn-color;
  border-radius: 0;
}
.el-date-table td.current:not(.disabled) span{
  border-radius: 0;
  background: $my-default-btn-color;
}

